//
//  WebResource.m
//  Staff
//
//  Created by caiyao on 11/17/14.
//
//

#import "WebResource.h"

@implementation WebResource

+ (WebResource *)parserWebRourceObjectWithJson:(NSDictionary *)jsonDic {
    WebResource *webResource = [[WebResource alloc] init];
    webResource.hashCode = [jsonDic objectForKey:@"hashcode"];
    webResource.zipURL = [jsonDic objectForKey:@"zipurl"];
    webResource.size = [[jsonDic objectForKey:@"size"] floatValue];
    webResource.fileName = [[webResource.zipURL componentsSeparatedByString:@"/"] lastObject];
    
    return webResource;
    
}

@end
